package com.pasabahceambalaj.session;

import com.pasabahceambalaj.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("isemirbarkodList")
public class IsemirbarkodList extends EntityQuery<Isemirbarkod> {

	private static final String EJBQL = "select isemirbarkod from Isemirbarkod isemirbarkod";

	private static final String[] RESTRICTIONS = { "lower(isemirbarkod.barkod) like lower(concat(#{isemirbarkodList.isemirbarkod.barkod},'%'))", "lower(isemirbarkod.barkodturu) like lower(concat(#{isemirbarkodList.isemirbarkod.barkodturu},'%'))", };

	private Isemirbarkod isemirbarkod = new Isemirbarkod();

	public IsemirbarkodList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public Isemirbarkod getIsemirbarkod() {
		return isemirbarkod;
	}
}
